package com.example.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
public class Reply {

    private Long id;
    private Long commentId;
    private String content;
    private Long adminId;
    private String founder;
    private Date founderTime;
    private String updater;
    private Date updateTime;

    public Reply() {
    }

    public Reply(Long id, Long commentId, String content, Long adminId, String founder, Date founderTime, String updater, Date updateTime) {
        this.id = id;
        this.commentId = commentId;
        this.content = content;
        this.adminId = adminId;
        this.founder = founder;
        this.founderTime = founderTime;
        this.updater = updater;
        this.updateTime = updateTime;
    }

    public Reply(Long commentId, String content, Long adminId, String founder, Date founderTime) {
        this.commentId = commentId;
        this.content = content;
        this.adminId = adminId;
        this.founder = founder;
        this.founderTime = founderTime;
        this.updater = null;
        this.updateTime = null;
    }
}
